TEMPLATE = app

QT += qml quick widgets opengl gui

TARGET = androidDemoPopodino

DESTDIR = $$PWD/bin

SOURCES += main.cpp \
    logfile.cpp \
    qmlobjecttest.cpp \
    qdebug2logcat.cpp \
    mainwindow.cpp \
    upmainwindow.cpp

RESOURCES += qml.qrc

# Additional import path used to resolve QML modules in Qt Creator's code model
QML_IMPORT_PATH =

# Default rules for deployment.
include(deployment.pri)
include(openglwindow.pri)

HEADERS += \
    logfile.h \
    qmlobjecttest.h \
    qdebug2logcat.h \
    mainwindow.h \
    upmainwindow.h


android-g++{
    QT += androidextras

    DISTFILES += \
        android/AndroidManifest.xml \
        android/gradle/wrapper/gradle-wrapper.jar \
        android/gradlew \
        android/res/values/libs.xml \
        android/build.gradle \
        android/gradle/wrapper/gradle-wrapper.properties \
        android/gradlew.bat \
        android/src/an/qt/useJar/ExtendsQtNative.java \
        android/src/an/qt/useJar/ExtendsQtWithJava.java

    ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android

    HEADERS += \
        android/log.h \
        mycommon.h

    SOURCES += \
        mycommon.cpp

}

DISTFILES += \
    android/AndroidManifest.xml \
    android/gradle/wrapper/gradle-wrapper.jar \
    android/gradlew \
    android/res/values/libs.xml \
    android/build.gradle \
    android/gradle/wrapper/gradle-wrapper.properties \
    android/gradlew.bat \
    android/AndroidManifest.xml \
    android/gradle/wrapper/gradle-wrapper.jar \
    android/gradlew \
    android/res/values/libs.xml \
    android/build.gradle \
    android/gradle/wrapper/gradle-wrapper.properties \
    android/gradlew.bat
